home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9593 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Parallel I/O in MS Visual C/C++
  5. Date: 2 Mar 1996 23:19:17 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4hal1l$kfq@news1.usa.pipeline.com>
  8. References: <4h9n6q$psh@vip.cybercity.dk>
  9. NNTP-Posting-Host: pipe14.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 02, 1996 15:10:35 in article <Parallel I/O in MS Visual C/C++>,
  16. 'monsted@cybercity.dk (Monsted)' wrote: 
  17.  
  18.  
  19. >Does anybody know how to read/write from/to an address, specifically 
  20. >the one pointing to LPT1? I just need to read/write single bits, but 
  21. >whole ranges would be OK as well. 
  22. Look into CreateFile and CreateFileEx WIN32 API functions.  I haven't 
  23. used it for parallel ports; however, I have written programs to access 
  24. serial ports with CreateFile and works just fine.  According to the  
  25. MSVC++40 online docs, it's supposed to work for parallel also. 
  26.  
  27. Search for subject "Communications Overview", then start clicking 
  28. on the right arrow to find the necessary topics to access ports. 
  29.  
  30. -- 
  31. Pete Grant 
  32. Kalevi, Inc. 
  33. Software Engineering & development
  34.